package com.mayikt.service.manage;

import com.mayikt.service.annotation.MayiktAsync;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author 余胜军
 * @ClassName OrderManage
 * @qq 644064779
 * @addres www.mayikt.com
 * 微信:yushengjun644
 */
@Component
@Slf4j
public class OrderManage {

    @MayiktAsync
    public void asyncLog() {
        try {
            log.info(">目标方法开始执行 正在阻塞3s时间<");
            Thread.sleep(3000);
            log.info("<2>");
        } catch (Exception e) {

        }

    }
}
